<?php
$this->breadcrumbs = array(
    'Post' => array('index'),
    'Report Abuse' => array('reportabuse'),
);
?>
<div class="box">
    <header>
        <h5><i class="icon icon-user"></i> - Manage Abuse Reporting</h5>
    </header>
    <div class="box">

	<?php
	$this->widget('bootstrap.widgets.TbGridView', array(
	    'id' => 'post-grid',
	    'dataProvider' => $model->search(),
	    'filter' => $model,
	    'columns' => array(
		array(
		    'name' => 'postTitle',
		    'value' => '$data->posts->title'
		),
		array(
		    'name' => 'sender',
		    'value' => '$data->user->display_name'
		),
		array(
		    'name' => 'message',
		    'filter' => $aStatementAbuse,
		),
		array(
		    'name' => "link_post",
		    'filter' => false
		),
		array(
		    'name' => 'time_created',
		    'type' => 'datetime',
		    'filter' => false
		),
		array(
		    'class' => 'bootstrap.widgets.TbButtonColumn',
		    'template' => '{delete}',
		    'buttons' => array(
			'delete' => array(
			    'url' => 'Yii::app()->controller->createUrl("post/deletereportabuse", array("id"=>$data->abuse_id))',
			),
		    ),
		)
	    ),
	));
	?>
    </div>
</div>
